import os
cwd = os.getcwd()
format=MARKMIN

def index():
    return dict(message="hello from plugin_pdf_pyfpdf.py function index")

def action_1():
    return dict(message="hello from plugin_pdf_pyfpdf.py function action_1")

def action_2():
    return dict(message="hello from plugin_pdf_pyfpdf.py function action_2")

def display_static():
    """
    Displays app_name/plugin_font_midnight/static/
    """
    file_name=request.args(0) or redirect(URL('index'))    
    file_path = os.path.join(cwd,'applications',request.application, 'static', 'plugin_pdf_pyfpdf', file_name)
    if os.path.exists(file_path):
        content=open(file_path,'r').read()
        body = MARKMIN(content)
    else:
        body = MARKMIN('file not found')
    return dict(body=body)
